//
//  THJOrderDetailNormalCell.m
//  THJXHW
//
//  Created by 河南德艺 on 2018/6/21.
//  Copyright © 2018年 河南德艺. All rights reserved.
//

#import "THJOrderDetailNormalCell.h"

@implementation THJOrderDetailNormalCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setUIWithDic:(NSDictionary*)dic{
    
    NSString * date = [RSA decryptString:dic[@"updateTime"] publicKey:RSA_PubKey];
    NSArray * dateArr = [date componentsSeparatedByString:@"-"];
    self.monthLab.text = [NSString stringWithFormat:@"%@月",dateArr[1]];
    self.dayLab.text  = dateArr[2];
    NSString * content = [RSA decryptString:dic[@"content"] publicKey:RSA_PubKey];
    NSArray * contentArr = [content componentsSeparatedByString:@"，"];
    if(contentArr.count>=2){
        self.lab1.text = contentArr[0];
        self.lab2.text = contentArr[1];
    }else if(contentArr.count == 1){
        self.lab1.text = contentArr[0];
        self.lab2.text = @"";
    }
   
}
@end
